/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Hospital Unit Practice Setting Member3</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getHospitalUnitPracticeSettingMember3()
 * @model extendedMetaData="name='HospitalUnitPracticeSetting_._member_._3'"
 * @generated
 */
public enum HospitalUnitPracticeSettingMember3 implements Enumerator {
	/**
	 * The '<em><b>HU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #HU_VALUE
	 * @generated
	 * @ordered
	 */
	HU(0, "HU", "HU"),

	/**
	 * The '<em><b>BMTU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BMTU_VALUE
	 * @generated
	 * @ordered
	 */
	BMTU(1, "BMTU", "BMTU"),

	/**
	 * The '<em><b>CHEST</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CHEST_VALUE
	 * @generated
	 * @ordered
	 */
	CHEST(2, "CHEST", "CHEST"),

	/**
	 * The '<em><b>CCU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CCU_VALUE
	 * @generated
	 * @ordered
	 */
	CCU(3, "CCU", "CCU"),

	/**
	 * The '<em><b>EPIL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EPIL_VALUE
	 * @generated
	 * @ordered
	 */
	EPIL(4, "EPIL", "EPIL"),

	/**
	 * The '<em><b>HD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #HD_VALUE
	 * @generated
	 * @ordered
	 */
	HD(5, "HD", "HD"),

	/**
	 * The '<em><b>NCCS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NCCS_VALUE
	 * @generated
	 * @ordered
	 */
	NCCS(6, "NCCS", "NCCS"),

	/**
	 * The '<em><b>NS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #NS_VALUE
	 * @generated
	 * @ordered
	 */
	NS(7, "NS", "NS"),

	/**
	 * The '<em><b>273R00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_273R00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_273R00000N(8, "_273R00000N", "273R00000N"),

	/**
	 * The '<em><b>PHU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PHU_VALUE
	 * @generated
	 * @ordered
	 */
	PHU(9, "PHU", "PHU"),

	/**
	 * The '<em><b>273Y00000N</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_273Y00000N_VALUE
	 * @generated
	 * @ordered
	 */
	_273Y00000N(10, "_273Y00000N", "273Y00000N"),

	/**
	 * The '<em><b>RHU</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RHU_VALUE
	 * @generated
	 * @ordered
	 */
	RHU(11, "RHU", "RHU"),

	/**
	 * The '<em><b>SLEEP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SLEEP_VALUE
	 * @generated
	 * @ordered
	 */
	SLEEP(12, "SLEEP", "SLEEP");

	/**
	 * The '<em><b>HU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>HU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #HU
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int HU_VALUE = 0;

	/**
	 * The '<em><b>BMTU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BMTU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BMTU
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BMTU_VALUE = 1;

	/**
	 * The '<em><b>CHEST</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CHEST</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CHEST
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CHEST_VALUE = 2;

	/**
	 * The '<em><b>CCU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CCU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CCU
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CCU_VALUE = 3;

	/**
	 * The '<em><b>EPIL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EPIL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EPIL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int EPIL_VALUE = 4;

	/**
	 * The '<em><b>HD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>HD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #HD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int HD_VALUE = 5;

	/**
	 * The '<em><b>NCCS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NCCS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NCCS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NCCS_VALUE = 6;

	/**
	 * The '<em><b>NS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>NS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #NS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int NS_VALUE = 7;

	/**
	 * The '<em><b>273R00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>273R00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_273R00000N
	 * @model literal="273R00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _273R00000N_VALUE = 8;

	/**
	 * The '<em><b>PHU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PHU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PHU
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PHU_VALUE = 9;

	/**
	 * The '<em><b>273Y00000N</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>273Y00000N</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_273Y00000N
	 * @model literal="273Y00000N"
	 * @generated
	 * @ordered
	 */
	public static final int _273Y00000N_VALUE = 10;

	/**
	 * The '<em><b>RHU</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RHU</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RHU
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RHU_VALUE = 11;

	/**
	 * The '<em><b>SLEEP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SLEEP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SLEEP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SLEEP_VALUE = 12;

	/**
	 * An array of all the '<em><b>Hospital Unit Practice Setting Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final HospitalUnitPracticeSettingMember3[] VALUES_ARRAY =
		new HospitalUnitPracticeSettingMember3[] {
			HU,
			BMTU,
			CHEST,
			CCU,
			EPIL,
			HD,
			NCCS,
			NS,
			_273R00000N,
			PHU,
			_273Y00000N,
			RHU,
			SLEEP,
		};

	/**
	 * A public read-only list of all the '<em><b>Hospital Unit Practice Setting Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<HospitalUnitPracticeSettingMember3> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Hospital Unit Practice Setting Member3</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HospitalUnitPracticeSettingMember3 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			HospitalUnitPracticeSettingMember3 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Hospital Unit Practice Setting Member3</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HospitalUnitPracticeSettingMember3 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			HospitalUnitPracticeSettingMember3 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Hospital Unit Practice Setting Member3</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static HospitalUnitPracticeSettingMember3 get(int value) {
		switch (value) {
			case HU_VALUE: return HU;
			case BMTU_VALUE: return BMTU;
			case CHEST_VALUE: return CHEST;
			case CCU_VALUE: return CCU;
			case EPIL_VALUE: return EPIL;
			case HD_VALUE: return HD;
			case NCCS_VALUE: return NCCS;
			case NS_VALUE: return NS;
			case _273R00000N_VALUE: return _273R00000N;
			case PHU_VALUE: return PHU;
			case _273Y00000N_VALUE: return _273Y00000N;
			case RHU_VALUE: return RHU;
			case SLEEP_VALUE: return SLEEP;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private HospitalUnitPracticeSettingMember3(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //HospitalUnitPracticeSettingMember3
